package com.ylbh.modules.sign.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.sign.dto.SignPrizeDTO;
import com.ylbh.common.pojo.sign.dto.SignUserLogDTO;
import com.ylbh.common.pojo.sign.vo.ShoppingSigninPrizeVO;
import com.ylbh.common.pojo.sign.vo.ShoppingSigninUserlogVO;
import com.ylbh.common.pojo.sign.vo.UserlogExceVO;
import com.ylbh.modules.sign.entity.ShoppingSigninIssuelog;
import com.ylbh.modules.sign.entity.ShoppingSigninPrize;
import com.ylbh.modules.sign.entity.ShoppingSigninUserlog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 抽奖记录表
 * @author wjc
 * @date 2019-011-06 14:22:40
 */
@Mapper
@Repository
public interface ShoppingSignUserlogMapper {
    

    /**
     * 抽奖活动例表
     * @param signUserLogDTO
     * @param page
     * @return
     */
    List<ShoppingSigninUserlogVO> selectUserLogList(@Param(value = "signUserLogDTO") SignUserLogDTO signUserLogDTO, Page<Object> page);
    /**
     * 发放奖励记录添加
     * @param shoppingSigninUserlog
     * @return
     */
    int insertIssueLogInfo(ShoppingSigninIssuelog shoppingSigninUserlog);

    void updateRewardStatus(@Param(value = "userlogId") String userlogId);

    /**
     * 导出抽奖记录详情
     * @param startTime
     * * @param endTime
     * @return
     */
    List<UserlogExceVO> selectUserLogExceList(@Param(value = "startTime") String startTime, @Param(value = "endTime") String endTime);
}
